<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
    <script>
        const obj = {
            name: 'zhangsan',
            age: '10',
            gender: '男'
        }
        // const [name1, age1, gender1] = obj;
        // const [name2, ...rest] = obj
        const {name, gender} = obj;
        console.log(name);
    </script>
</body>

</html>